EVAL=/home/swlee4skmt/bin/giza/align_evalV2.pl
ITR=`cat ../now-itr.var`
TYPE=`cat ../../info/rule_type.var`
SYMM=`cat ../../info/symm.var`

if [ ${ITR} == 0 ]; then

	if [ $SYMM == int ]; then
		echo "Intersection"
		echo ${ITR}
		perl ${EVAL} ../../info/wa-gold.num int-all.nao > int.eval
		tail -3 int.eval
	fi
	if [ $SYMM == uni ]; then
		echo "Union"
		echo ${ITR}
		perl ${EVAL} ../../info/wa-gold.num uni-all.nao > uni.eval
		tail -3 uni.eval
	fi
	if [ $SYMM == st ]; then
		echo "ST"
		perl ${EVAL} ../../info/wa-gold.num st-all.nao > st.eval
		tail -3 st.eval
	fi



else
	if [ $SYMM == int ]; then
		echo "Intersection"
		echo ${ITR}
		perl ${EVAL} ../../info/wa-gold.num int-all-recovered.nao > int-recovered.eval
		tail -3 int-recovered.eval
	fi
	if [ $SYMM == uni ]; then
		echo "Union"
		echo ${ITR}
		perl ${EVAL} ../../info/wa-gold.num uni-all-recovered.nao > uni-recovered.eval
		tail -3 uni-recovered.eval
	fi
	if [ $SYMM == st ]; then
		echo "ST"
		perl ${EVAL} ../../info/wa-gold.num st-all-recovered.nao > st-recovered.eval
		tail -3 st-recovered.eval
	fi

fi

cd ..;

